
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

/// <summary>
/// 测试用类
/// 1.能触发子节点的OnPointerEnter,onPointerExit等，但是OnPointerUp却不行;
/// 2.所以挂在父节点:Canvas，测试是否会向上传（既然向下不行）
/// </summary>
public class PointerClickParentTester :MonoBehaviour, IPointerUpHandler,IPointerEnterHandler
{
    void Start()
    {
        
    }


    public void OnPointerUp(PointerEventData eventData)
    {
        Debug.LogError(" parent Pointer up");
    }

    public void OnPointerEnter(PointerEventData eventData)
    {
        Debug.LogError(" parent Pointer enter");
    }
}
